{% extends "bets/base_site_no_top.html" %}

{% block center-content %}
    <div class="well">
    {% if players or teams %}
      <h1 class="muted"><small>Search results for: <strong>{{ value }}</strong></small></h1>
    {% else %}
      <h1 class="muted"><small>Sorry, no players or teams matched your criteria.</small></h1>
    {% endif %}
      <ul class="nav nav-list" style="font-size: 18px;">
        {% if players %}
        <li>
           Players:
        </li>
      	<hr class="dotted">      
	      {% for p in players %}
		        <li>
		           <a href="{% url 'bets:team_profile_view' p.team.game.name p.id %}">{{ p.name }} ( game - {{ p.team.game.name }} )</a>
		        </li>
		      	<hr class="dotted">
	      {% endfor %}
	     {% endif %}
	     {% if teams %}
        <li>
           Teams:
        </li>
      	<hr class="dotted">      
	      {% for t in teams %}
		        <li>
		           <a href="{% url 'bets:team_profile_view' t.game.name t.id %}">{{ t.name }} ( game - {{ t.game.name }} )</a>
		        </li>
		      	<hr class="dotted">
	      {% endfor %}
	      {% endif %}	      
      </ul>
	     <hr>
	    <p class="muted">
			<span class="pull-right">
			  <i class="icon-chevron-up"></i>
			  <a href="{% url 'bets:game_view' %}" title="">Back to games</a>
			</span>   
		</p>
		<hr>
	</div>     
{% endblock %}
